********************************************************************************
*																			   *
*						Sir! I'd Rather Go to School Sir!					   *
*																			   *
*								 Mahdi Majbouri								   *
*																			   *
*									 Table A4								   *
*																			   *
*									6-6-2023								   *
*																			   *
********************************************************************************


********************************************************************************
**  +/- 10 Years
********************************************************************************

use "census11-all.dta", clear

keep if fage>=fage18 & fage18>=threshold - 9 & fage18<=threshold + 10

regress college_plus t fa tfa father_ed mom_ed fage mage if relate==3 & son==0 & sons > 1 & fage>=fage18 & urban == 2, vce(cluster fa)
outreg2 using "Table A4", excel adjr2 se alpha(0.01,0.05,0.10) ///
		symbol(***,**,*) bdec(3) sdec(3) rdec(3) ctitle("+/-10years-p1") replace

regress college_plus t fa tfa fasq tfasq father_ed mom_ed fage mage if relate==3 & son==0 & sons > 1 & fage>=fage18 & urban == 2, vce(cluster fa)
outreg2 using "Table A4", excel adjr2 se alpha(0.01,0.05,0.10) ///
		symbol(***,**,*) bdec(3) sdec(3) rdec(3) ctitle("+/-10years-p2") append

regress college_plus t fa tfa fasq tfasq facb tfacb father_ed mom_ed fage mage if relate==3 & son==0 & sons > 1 & fage>=fage18 & urban == 2, vce(cluster fa)
outreg2 using "Table A4", excel adjr2 se alpha(0.01,0.05,0.10) ///
		symbol(***,**,*) bdec(3) sdec(3) rdec(3) ctitle("+/-10years-p3") append



		
********************************************************************************
**  +/- 6 Years
********************************************************************************

use "census11-all.dta", clear

keep if fage>=fage18 & fage18>=threshold - 5 & fage18<=threshold + 6

regress college_plus t fa tfa father_ed mom_ed fage mage if relate==3 & son == 0 & sons > 1 & ///
		fage>=fage18 & urban == 2, vce(cluster fa)
outreg2 using "Table A4", excel adjr2 se alpha(0.01,0.05,0.10) ///
		symbol(***,**,*) bdec(3) sdec(3) rdec(3) ctitle("+/-6years") append

regress college_plus t fa tfa fasq tfasq father_ed mom_ed fage mage if relate==3 & son == 0 & sons > 1 ///
		& fage>=fage18 & urban == 2, vce(cluster fa)
outreg2 using "Table A4", excel adjr2 se alpha(0.01,0.05,0.10) ///
		symbol(***,**,*) bdec(3) sdec(3) rdec(3) ctitle("+/-6years") append

regress college_plus t fa tfa fasq tfasq facb tfacb father_ed mom_ed fage mage if relate==3 & son == 0 ///
		& sons > 1 & fage>=fage18 & urban == 2, vce(cluster fa)
outreg2 using "Table A4", excel adjr2 se alpha(0.01,0.05,0.10) ///
		symbol(***,**,*) bdec(3) sdec(3) rdec(3) ctitle("+/-6years") append
		

		
		
********************************************************************************
**  +/- 8 Years
********************************************************************************

use "census11-all.dta", clear

keep if fage>=fage18 & fage18>=threshold - 7 & fage18<=threshold + 8

regress college_plus t fa tfa father_ed mom_ed fage mage if relate==3 & son == 0 & sons > 1 & ///
		fage>=fage18 & urban == 2, vce(cluster fa)
outreg2 using "Table A4", excel adjr2 se alpha(0.01,0.05,0.10) ///
		symbol(***,**,*) bdec(3) sdec(3) rdec(3) ctitle("+/-8years") append

regress college_plus t fa tfa fasq tfasq father_ed mom_ed fage mage if relate==3 & son == 0 & sons > 1 ///
		& fage>=fage18 & urban == 2, vce(cluster fa)
outreg2 using "Table A4", excel adjr2 se alpha(0.01,0.05,0.10) ///
		symbol(***,**,*) bdec(3) sdec(3) rdec(3) ctitle("+/-8years") append

regress college_plus t fa tfa fasq tfasq facb tfacb father_ed mom_ed fage mage if relate==3 & son == 0 ///
		& sons > 1 & fage>=fage18 & urban == 2, vce(cluster fa)
outreg2 using "Table A4", excel adjr2 se alpha(0.01,0.05,0.10) ///
		symbol(***,**,*) bdec(3) sdec(3) rdec(3) ctitle("+/-8years") append
		


		
********************************************************************************
**  +/- 12 Years
********************************************************************************

use "census11-all.dta", clear

keep if fage>=fage18 & fage18>=threshold - 11 & fage18<=threshold + 12

regress college_plus t fa tfa father_ed mom_ed fage mage if relate==3 & son == 0 & sons > 1 & ///
		fage>=fage18 & urban == 2, vce(cluster fa)
outreg2 using "Table A4", excel adjr2 se alpha(0.01,0.05,0.10) ///
		symbol(***,**,*) bdec(3) sdec(3) rdec(3) ctitle("+/-12years") append

regress college_plus t fa tfa fasq tfasq father_ed mom_ed fage mage if relate==3 & son == 0 & sons > 1 ///
		& fage>=fage18 & urban == 2, vce(cluster fa)
outreg2 using "Table A4", excel adjr2 se alpha(0.01,0.05,0.10) ///
		symbol(***,**,*) bdec(3) sdec(3) rdec(3) ctitle("+/-12years") append

regress college_plus t fa tfa fasq tfasq facb tfacb father_ed mom_ed fage mage if relate==3 & son == 0 ///
		& sons > 1 & fage>=fage18 & urban == 2, vce(cluster fa)
outreg2 using "Table A4", excel adjr2 se alpha(0.01,0.05,0.10) ///
		symbol(***,**,*) bdec(3) sdec(3) rdec(3) ctitle("+/-12years") append
					


					
********************************************************************************
**  +/- 15 Years
********************************************************************************

use "census11-all.dta", clear

keep if fage>=fage18 & fage18>=threshold - 14 & fage18<=threshold + 15

regress college_plus t fa tfa father_ed mom_ed fage mage if relate==3 & son == 0 & sons > 1 & ///
		fage>=fage18 & urban == 2, vce(cluster fa)
outreg2 using "Table A4", excel adjr2 se alpha(0.01,0.05,0.10) ///
		symbol(***,**,*) bdec(3) sdec(3) rdec(3) ctitle("+/-15years") append

regress college_plus t fa tfa fasq tfasq father_ed mom_ed fage mage if relate==3 & son == 0 & sons > 1 ///
		& fage>=fage18 & urban == 2, vce(cluster fa)
outreg2 using "Table A4", excel adjr2 se alpha(0.01,0.05,0.10) ///
		symbol(***,**,*) bdec(3) sdec(3) rdec(3) ctitle("+/-15years") append

regress college_plus t fa tfa fasq tfasq facb tfacb father_ed mom_ed fage mage if relate==3 & son == 0 ///
		& sons > 1 & fage>=fage18 & urban == 2, vce(cluster fa)
outreg2 using "Table A4", excel adjr2 se alpha(0.01,0.05,0.10) ///
		symbol(***,**,*) bdec(3) sdec(3) rdec(3) ctitle("+/-15years") append


		
		
********************************************************************************
*********************************  THE END *************************************
********************************************************************************
